package app;

public class SomeData {

    String s;
    int i;

    public SomeData(String s, int i) {
        this.s = s;
        this.i = i;
    }

    @Override
    public String toString() {
        String result = "str: " + this.s + ", val: " + this.i;

        return result;
    }

    @Override
    public boolean equals(Object o) {
        if (o == null) {
            return false;
        }
        if (o.getClass() != this.getClass()) {
            return false;
        }
        final SomeData other = (SomeData) o;
        if ((this.s != null) ? (other.s == null) : (!this.s.equals(other.s))) {
            return false;
        }
        if (this.i != other.i) {
            return false;
        }
        return true;
    }
}
